const cacheName="cache_v1",urlList=["/us-jelly/main.min.css","/us-jelly/main.min.js","/us-jelly/index.html"];function attachEvent(e,n,t){e.removeEventListener(n,t),e.addEventListener(n,t)}function onInstall(e){caches.open(cacheName).then((function(e){e.addAll(urlList)}))}function onFetch(e){e.respondWith(new Promise((function(n){fetch(e.request).then((function(t){const c=t.clone();caches.open(cacheName).then((function(n){n.put(e.request,c)})),n(t)})).catch((function(t){caches.match(e.request).then((function(e){e&&n(e),n(caches.match("/us-jelly/index.html"))}))}))})))}attachEvent(self,"install",onInstall),attachEvent(self,"fetch",onFetch);